<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:directive.page language="java"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>栏目信息列表</title>
		<%@ include file="/commons/includes/taglib.jspf"%>
		<%@ include file="/commons/includes/meta.jspf"%>
		<%@ include file="/commons/includes/script.jspf"%>
		<%@ include file="/commons/includes/style.jspf"%>
		<%@ include file="/commons/extremecomponents/extremetable.jspf"%>
		<script type="text/javascript" src="catalogList.js"></script>
	</head>
	<body>
		<form name="catalogList" action="catalogList.shtml" method="post">
			<input type="hidden" id="event" name="event" />
			<button class="btn2" id="btnNew">
				新增
			</button>
			<button class="btn2" id="btnDel">
				删除
			</button>
			<ec:table items="catalogList" var="catalog" form="catalogList"
				action="catalogList.shtml">
				<ec:row>
					<c:url var="editUrl" value="catalogEdit.shtml?id=${catalog.id}" />
					<ec:column property="id" width="15%" sortable="false"
						title="选择[<span onclick='javascript: selectAll(\"selectedIds\");' style='cursor:hand;'>全选</span>]">
						<input type="checkbox" name="selectedIds" value="${catalog.id}" />
					</ec:column>
					<ec:column property="title" title="栏目名称">
						<a href="${editUrl}"><c:out value="${catalog.title}" /> </a>
					</ec:column>
					<ec:column property="level" title="级别">
						<a href="${editUrl}"><c:out value="${catalog.level}" /> </a>
					</ec:column>
					<ec:column property="superior" title="上级栏目">
						<a href="${editUrl}"><c:out value="${catalogMap[catalog.superior].title}" /> </a>
					</ec:column>
				</ec:row>
			</ec:table>
		</form>
	</body>
</html>